﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace YJKArch.ImportStructureProject
{
	public partial class ProjectSelectForm : System.Windows.Forms.Form
	{
		public int SelectProjectIndex
		{
			get
			{
				return this.m_SelectProjectIndex;
			}
		}

		public ProjectSelectForm(List<string> projectList)
		{
			this.InitializeComponent();
			foreach (string item in projectList)
			{
				this.cmbProjectList.Items.Add(item);
			}
			if (projectList.Count > 0)
			{
				this.cmbProjectList.SelectedIndex = 0;
			}
		}

		private void cmbProjectList_SelectedIndexChanged(object sender, EventArgs e)
		{
			this.m_SelectProjectIndex = this.cmbProjectList.SelectedIndex;
		}

		private int m_SelectProjectIndex = -1;
	}
}
